<template>
  <div class="passwordreset">
    <!-- 标题 -->
    <div class="title">
      <span class="backicon">
        <img :src="backicon" @click="back" alt />
      </span>
      <span class="mintitle">密码重置</span>
    </div>
    <div class="info">
      <p>手机号验证</p>
      <!-- 输入手机号栏 -->
      <div>
        <span class="phonicon">
          <img :src="phone" alt />
        </span>
        <div class="ipt">
          <span class="num">+ 86</span>
          <input type="tel" name id />
        </div>
      </div>
      <!-- 获取验证码栏 -->
      <div class="verificat">
        <span class="verification">
          <img :src="yanzheng" alt />
        </span>
        <div class="ipt">
          <input type="tel" name id />
          <div class="huoqu">获取验证码</div>
        </div>
      </div>
      <!-- 设置密码栏 -->
      <div class="title2">
        <p>设置新密码</p>
      </div>
      <!-- 新密码 -->
      <div class="ipt2">
        <span class="newpwd">
          <img :src="newpwd" alt />
        </span>
        <div class="ipt">
          <input type="password" placeholder="新密码" name id />
        </div>
      </div>
      <!-- 确认密码 -->
      <div class="ipt3">
        <span class="surepwd">
          <img :src="surepwd" alt />
        </span>
        <div class="ipt">
          <input type="password" name placeholder="确认新密码" id />
        </div>
      </div>
      <!-- 底部信息栏 -->
      <div class="end">
        <p>密码包含6-12位的数字和字符</p>
      </div>
    </div>
    <!-- 确认按钮 -->
    <div class="surebtn" v-show="showBtn">确认</div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      backicon: require("../../assets/img/backicon.png"),
      phone: require("../../assets/img/ph@2x.png"),
      yanzheng: require("../../assets/img/Verificationicon.png"),
      newpwd: require("../../assets/img/unlocked.png"),
      surepwd: require("../../assets/img/lock.png"),
      clientHeight: document.documentElement.clientHeight,
      showBtn: true
    };
  },
  methods: {
    back() {
      this.$router.push("/personal");
    }
  },
  mounted() {
    window.onresize = () => {
      if (this.clientHeight > document.documentElement.clientHeight) {
        this.showBtn = false;
      } else {
        this.showBtn = true;
      }
    };
  }
};
</script>
<style scoped>
.passwordreset {
  width: 100%;
  height: 100%;
}
.title {
  width: 100%;
  height: 44px;
  text-align: center;
  color: #333;
}
.backicon img {
  width: 9px;
  float: left;
  margin: 15px 0 0 15px;
}
.mintitle {
  font-size: 18px;
  line-height: 44px;
  font-weight: 1000;
  margin: 0 0 0 -15px;
}
.info {
  padding: 60px 68px 0 68px;
}
.info p {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  line-height: 15px;
  font-family: "PingFang SC", "Microsoft YaHei";
  color: #333;
}
.phonicon img {
  width: 11px;
  margin: 39px 0 0 0;
}
.newpwd img {
  width: 11px;
  margin: 35px 0 0 0;
}
.ipt {
  position: relative;
  top: -25px;
  left: 20px;
  border: 1px solid rgb(204, 204, 204);
  border-left: none;
  border-top: none;
  border-right: none;
  width: 213px;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: rgb(204, 204, 204);
  font-size: 16px;
}
.num {
  font-size: 16px;
  font-weight: 800;
  color: #000;
}
input {
  background: none;
  outline: none;
  border: none;
  height: 30px;
  line-height: 30px;
  font-family: "DINPro-Bold";
  font-size: 16px;
  color: #000;
  caret-color: #000;
  margin: 0 0 0 5px;
  width: 150px;
}
.verificat {
  margin: 5px 0 0 0;
}
.verification img {
  width: 11px;
}
.title2 p {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  margin: 8px 0 0 0;
  line-height: 15px;
  color: #333;
}
.surepwd img {
  width: 11px;
  margin: 12px 0 0 0;
}
.end p {
  margin: 8px 0 0 20px;
  font-weight: inherit;
  color: rgb(204, 204, 204);
  font-size: 12px;
}
.surebtn {
  width: 345px;
  height: 40px;
  background-color: rgb(238, 238, 238);
  text-align: center;
  line-height: 40px;
  margin: 136px 0 0 15px;
  border-radius: 3px;
  font-size: 15px;
  color: rgb(153, 153, 153);
  font-weight: 800;
}
@media (max-height: 670px) {
  .surebtn {
    width: 345px;
    position: absolute;
    bottom: 30px;
  }
}
.huoqu {
  float: right;
  width: 75px;
  height: 20px;
  background-color: rgb(238, 238, 238);
  text-align: center;
  line-height: 20px;
  position: relative;
  top: -23px;
  border-radius: 3px;
}
</style>